home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / TUTORIAL.BIN / MethodInvoker.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-12-20  |  1.4 KB  |  62 lines

  1. package symantec.tools.dmi;
  2.  
  3. public class MethodInvoker {
  4.    private byte[] args = new byte[1024];
  5.    private int pos = 0;
  6.    private static final int MAX_ARG_LEN = 1024;
  7.  
  8.    public void ArgReset() {
  9.       this.pos = 0;
  10.    }
  11.  
  12.    public native Object CallByName(Object var1, String var2) throws Exception;
  13.  
  14.    public native Object CallByName2(Object var1, String var2, String var3) throws Exception;
  15.  
  16.    public native void AddArgBoolean(boolean var1) throws IllegalArgumentLengthException;
  17.  
  18.    public native void AddArgChar(char var1) throws IllegalArgumentLengthException;
  19.  
  20.    public native void AddArgInt(int var1) throws IllegalArgumentLengthException;
  21.  
  22.    public native void AddArgLong(long var1) throws IllegalArgumentLengthException;
  23.  
  24.    public native void AddArgFloat(float var1) throws IllegalArgumentLengthException;
  25.  
  26.    public native void AddArgDouble(double var1) throws IllegalArgumentLengthException;
  27.  
  28.    public native void AddArgObject(Object var1) throws IllegalArgumentLengthException;
  29.  
  30.    public void AddArg(boolean var1) throws IllegalArgumentLengthException {
  31.       this.AddArgBoolean(var1);
  32.    }
  33.  
  34.    public void AddArg(char var1) throws IllegalArgumentLengthException {
  35.       this.AddArgChar(var1);
  36.    }
  37.  
  38.    public void AddArg(int var1) throws IllegalArgumentLengthException {
  39.       this.AddArgInt(var1);
  40.    }
  41.  
  42.    public void AddArg(long var1) throws IllegalArgumentLengthException {
  43.       this.AddArgLong(var1);
  44.    }
  45.  
  46.    public void AddArg(float var1) throws IllegalArgumentLengthException {
  47.       this.AddArgFloat(var1);
  48.    }
  49.  
  50.    public void AddArg(double var1) throws IllegalArgumentLengthException {
  51.       this.AddArgDouble(var1);
  52.    }
  53.  
  54.    public void AddArg(Object var1) throws IllegalArgumentLengthException {
  55.       this.AddArgObject(var1);
  56.    }
  57.  
  58.    static {
  59.       System.loadLibrary("vedmi");
  60.    }
  61. }
  62.